package com.sqx.modules.health.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 智能手表设备表
 * </p>
 *
 * @author xglhappy
 * @since 2022-04-21
 */
@Getter
@Setter
@TableName("ncg_device_watch")
@ApiModel(value = "NcgDeviceWatch对象", description = "智能手表设备表")
public class NcgDeviceWatch implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("uuid")
    private String uuid;

    @ApiModelProperty("imei")
    private String imei;

    @ApiModelProperty("医院ID")
    private Long hid;

    @ApiModelProperty("状态：0 平台库存 1 医院库存 2 用户解绑 3 用户绑定  4 医护领用  5 报修 6 平台报修 7 平台报废")
    @TableField("`status`")
    private Integer status;

    @ApiModelProperty("定位上传周期")
    private Integer cycle;

    private LocalDateTime createtime;

    private LocalDateTime updatetime;

    private Integer isdelete;

    private Integer isenable;

    @ApiModelProperty("用户ID")
    private Long uid;

    @ApiModelProperty("代理商ID")
    private Long agentid;

    @ApiModelProperty("设备类型 1.手表 2.血压计 3.血糖仪 4.心电")
    private String type;

    @ApiModelProperty("医生id")
    private Long doctorid;

    @ApiModelProperty("设备使用次数")
    private Long usenumber;

    @ApiModelProperty("设备名称")
    private String devicename;

    @ApiModelProperty("设备所属科室")
    private Long departmentid;

    @ApiModelProperty("设备所属院内院外")
    private Integer positionid;

    @ApiModelProperty("设备所属产品id")
    private Integer productid;

    @ApiModelProperty("设备所属分类id")
    private Integer categoryid;

    @ApiModelProperty("设备转借uid")
    private String transferuid;

//    @ApiModelProperty("分配医生")
//    private Long docid;

    @ApiModelProperty("佩戴人姓名")
    @TableField(exist = false)
    private String uName;

    @ApiModelProperty("发放医生")
    @TableField(exist = false)
    private String docName;

    @ApiModelProperty("产品名称")
    @TableField(exist = false)
    private String name;

    @ApiModelProperty("商品缩略图")
    @TableField(exist = false)
    private String productIcon;

}
